<?php
// 抖音/巨量开发者信息
use app\model\Applet;

return [
    // 巨量开发者平台信息
    'huge_amount' => [
        'app_id' => '', // 待比翼鸟提供
        'secret' => '', // 待比翼鸟提供
    ],

    // 抖音小程序
    'applet' => [
        'appid' => 'tt716807d5ee55bba601',
        'secret' => '42803a89cef2a81970e4cc92e147385a75422d7c',
        'token' => '',
    ],
    // 抖音投放资产化
    'capitalization' => [
        'token' => '9B2665E550D4DFD651DEE4F1D434EE5F',
        'url' => 'https://clue.oceanengine.com/outer/wechat/applet/token/1781061557926980'
    ],

    // 比翼鸟使用的抖音主体
    'seraph' => [
        8, 17, 18, 19, 20, 21, 22, 23, 24
    ],

    // 抖音开发者clientToken
    'developer' => [
        'client_token_key' => 'client-token-key',
        'client_token_expire' => 7000,
    ],
    'media_assets' => [
        'tiktok_media_assets' => 'tiktok-media-assets-',
        'tiktok_video_id' => 'tiktok-video-id-',
        'tiktok_media_id' => 'tiktok-media-id-',
    ],

    //抖音应用私钥,用于加签
    'prod_private_keys' => [
        Applet::DY_APP_KEY_1 => [
            'key' => file_get_contents(public_path() . 'cert/tiktok_1/private_key.pem'),
            'version' => '1',
        ],
        Applet::DY_APP_KEY_2 => [
            'key' => file_get_contents(public_path() . 'cert/tiktok_2/private_key.pem'),
            'version' => '1',
        ],
        Applet::DY_APP_KEY_3 => [
            'key' => file_get_contents(public_path() . 'cert/tiktok_3/private_key.pem'),
            'version' => '1',
        ],
        Applet::DY_APP_KEY_4 => [
            'key' => file_get_contents(public_path() . 'cert/tiktok_4/private_key.pem'),
            'version' => '1',
        ],
        Applet::DY_APP_KEY_5 => [
            'key' => file_get_contents(public_path() . 'cert/tiktok_5/private_key.pem'),
            'version' => '1',
        ],
        Applet::DY_APP_KEY_6 => [
            'key' => file_get_contents(public_path() . 'cert/tiktok_6/private_key.pem'),
            'version' => '1',
        ],
        Applet::DY_APP_KEY_7 => [
            'key' => file_get_contents(public_path() . 'cert/tiktok_7/private_key.pem'),
            'version' => '1',
        ],
        Applet::DY_APP_KEY_8 => [
            'key' => file_get_contents(public_path() . 'cert/tiktok_8/private_key.pem'),
            'version' => '1',
        ],
        Applet::DY_APP_KEY_9 => [
            'key' => file_get_contents(public_path() . 'cert/tiktok_9/private_key.pem'),
            'version' => '1',
        ],
        Applet::DY_APP_KEY_10 => [
            'key' => file_get_contents(public_path() . 'cert/tiktok_10/private_key.pem'),
            'version' => '1',
        ],
    ],
];